package com.patterns.demo.adapter.objectAdapter;

/**
 * Author: SamGroves
 * <p>
 * Description: 对象新的包装类
 * <p>
 * Date: 2017/11/29
 */
public class Wrapper implements Targetabel {

    private Source source;

    public Wrapper(Source source) {
        super();
        this.source = source;
    }

    @Override
    public void method1() {
        source.method1();
    }

    @Override
    public void method2() {
        System.out.println("this is wrapper method!");
    }
}
